package com.carrent.demo.Mapper;

import com.carrent.demo.Domain.EmployeeInformation;
import com.carrent.demo.Domain.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface EmployeeInformationMapper {

    EmployeeInformation login(@Param("account") String account);

    List<EmployeeInformation> getPage(@Param("start")Integer start,@Param("pageSize")Integer pageSize,@Param("name")String name);

    Boolean addEmployee(@Param("employeeInformation") EmployeeInformation employeeInformation);

    Boolean deleteEmployee(@Param("id") String id);

    Boolean editEmployee(@Param("employeeInformation") EmployeeInformation employeeInformation);


    Integer getCount(@Param("name") String name);
}
